package com.crb.smartcard.core.bean;

import java.io.Serializable;

/**
 * 执行Apdu
 */
public class CApdu implements Serializable {
	/**
	 * 指令索引号
	 */
	private int index;
	/**
	 * 指令数据
	 */
	private String capdu;
	/**
	 * 期望状态字数组
	 */
	private String expSw;

	public CApdu() {
	}

	public CApdu(int index, String capdu, String expSw) {
		this.index = index;
		this.capdu = capdu;
		this.expSw = expSw;
	}


	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getCapdu() {
		return capdu;
	}

	public void setCapdu(String capdu) {
		this.capdu = capdu;
	}

	public String getExpSw() {
		return expSw;
	}

	public void setExpSw(String expSw) {
		this.expSw = expSw;
	}

	@Override
	public String toString() {
		return "CApdu{" +
				"index=" + index +
				", capdu='" + capdu + '\'' +
				", expSw='" + expSw + '\'' +
				'}';
	}
}
